# -*- coding: utf-8 -*-
# @File     : choice.py
# @Author   : bingjia
# @Time     : 2020/8/4 15:43
# @Desc     : 可选择权限

from django.utils.translation import ugettext_lazy as _

MEMBERS_PERMISSIONS = [
    # project permissions
    ('view_project', _('View project')),

    # data permissions
    ('view_data', _('View data')),
    ('create_data', _('Create data')),
    ('modify_data', _('Modify data')),
    ('delete_data', _('Delete data')),

    # role permissions
    ('view_role', _('View role')),
    ('create_role', _('Create role')),
    ('modify_role', _('Modify role')),
    ('delete_role', _('Delete role')),

    # check permissions
    ('view_check', _('View check')),
    ('create_check', _('Create check')),
    ('modify_check', _('Modify check')),
    ('delete_check', _('Delete check')),

    # info permissions
    ('view_info', _('View info')),
    ('create_info', _('Create info')),
    ('modify_info', _('Modify info')),
    ('delete_info', _('Delete info')),

    # equipment permissions
    ('view_equipment', _('View equipment')),
    ('create_equipment', _('Create equipment')),
    ('modify_equipment', _('Modify equipment')),
    ('delete_equipment', _('Delete equipment')),

    # train permissions
    ('view_train', _('View train')),
    ('create_train', _('Create train')),
    ('modify_train', _('Modify train')),
    ('delete_train', _('Delete train')),

    # setting permissions
    ('view_setting', _('View setting')),
    ('create_setting', _('Create setting')),
    ('modify_setting', _('Modify setting')),
    ('delete_setting', _('Delete setting')),
]

ADMINS_PERMISSIONS = [
    ('modify_project', _('Modify project')),
    ('delete_project', _('Delete project')),
    ('add_member', _('Add member')),
    ('remove_member', _('Remove member')),
    ('add_role', _('Add role')),
    ('remove_role', _('Remove role')),
]

